<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <title>分数转换，把百分制转换成ABCDE <60E60-70 D70-80C 80-90B 90－100 A</title>
</head>

<body>
    <script>
        var score = 98;
        if (score <= 100 && score >= 0) {
            if (score <= 100 && score > 90) {
                console.log("A");
            } else if (score > 80) {
                console.log("B");
            } else if (score > 70) {
                console.log("C");
            } else if (score > 60) {
                console.log("D");
            } else {
                console.log("E");
            }
        }
    </script>
</body>

</html>